/**
 * Created with IntelliJ IDEA.
 * Description: 牛客网.中等题.创建单例对象
 */

class Main {

    public static void main(String[] args) {
        Singleton s1 = Singleton.getInstance();
        Singleton s2 = Singleton.getInstance();
        System.out.println(s1 == s2);
    }

}

class Singleton {

    private static Singleton instance;

    private Singleton() {

    }

    public static void test() {
        System.out.println("测试代码");
    }

    //write your code here......
    public static Singleton getInstance() {
        return instance;
    }

}

public class Test {
}
